let { Schema, model } = require('mongoose');
let usersSchema = new Schema({
    account: String,
    password: String,
    name: String,
    phone: String,
    salespersonsId: {
        type: Schema.Types.ObjectId,
        ref: 'salespersonsModel'
    },

}, { versionKey: false });
module.exports.usersModel = model('usersModel', usersSchema, 'users');